import logging
logging.basicConfig(
    filename="tax.txt",
    format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s',
    level=logging.DEBUG
)
log = logging.getLogger("com.cyx.tax")
log.debug("调试")
log.info("信息")
log.warning("警告")
log.error("错误")
